package com.fingard.dsp.bank.reqrespobj.elecbillquery;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.elecbillquery.detail.RetAtsB011TransFlagQryDetail;
import com.fingard.xml.XmlTextWriter;

/**
 * Created by F on 2019/8/6.
 */
public class RetAtsB011TransFlagQry extends RetAtsBase {

    public RetAtsB011TransFlagQry(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeBeforeDetail() {
        writeStart();
    }

    public void writeAfter() {
        writeEnd();
    }

    public void writeDetail(RetAtsB011TransFlagQryDetail DB011Resp) {
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("RespCode", DB011Resp.respCode);
        retXmlWriter.writeElementString("RespInfo", DB011Resp.respInfo);
        retXmlWriter.writeElementString("BillNo", DB011Resp.billNo);
        retXmlWriter.writeElementString("TransFlag", DB011Resp.transFlag);
        retXmlWriter.writeEndElement();
    }
}
